﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using Microsoft.Drawing;

namespace TouchRC.Classes
{
    public class MediaBase
    {
        public MediaBase() { }
        public MediaBase(MediaBase media)
        {
            TotalTrackTime = media.TotalTrackTime;
            CurrentTrackTime = media.CurrentTrackTime;
            Title = media.Title;
            PlayState = media.PlayState;
            Image = media.Image;
        }

        public TimeSpan TotalTrackTime { get; set; }
        public TimeSpan CurrentTrackTime { get; set; }
        public string Title { get; set; }
        public bool PlayState { get; set; }
        public IImage Image { get; set; }

        public override string ToString()
        {
            return Title;
        }
    }

    public class MediaTV : MediaBase
    {
        public MediaTV() { }
        public MediaTV(MediaBase media) : base(media) { }
        int Channel { get; set; }
    }

    public class MediaVideo : MediaBase
    {
        public MediaVideo() { }
        public MediaVideo(MediaBase media) : base(media) { }
    }

    public class MediaAudio : MediaBase
    {
        public MediaAudio() { }
        public MediaAudio(MediaBase media) : base(media) { }

        public int TrackNumber { get; set; }
        public int TotalTracks { get; set; }
        public string ArtistName { get; set; }
        public string TrackName { get; set; }

        public override string ToString()
        {
            return ArtistName + "\r\n" + TrackName;
        }
    }
}
